#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time    : 2021/5/21 12:25
# @File    : plot.py
# @Author  : lxy
import matplotlib.pyplot as plt
import csv
if __name__ == "__main__":
    f = open("./train.csv","r",newline="",encoding="utf8")
    csv_reader = csv.reader(f)
    x , y = [],[]
    for row in csv_reader:
        x.append(row[0])
        y.append(row[1])
    plt.scatter(x,y)
    plt.xlabel("x")
    plt.ylabel("y")
    plt.show()